<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
    <title>{:input('ks')} - {:set('title')}</title>
    <meta name="description" content="{:set('description',1)}">
    <meta name="keywords" content=" {:set('keywords',1)}">
    {include file="header"}
</head>
<body>
<section class="aui-flexView">
	<header class="aui-navBar aui-navBar-fixed animated slideInDown">
		<a href="{:url('index/model/index',array('model'=>input('m')))}" class="aui-navBar-item left">
			<i class="iconfont">&#xe61a;</i>返回
		</a>
		<div class="aui-center">
			<div class="aui-search-box">
			    <form method="get" action="{if $hover==$m}{:url('index/model/soso',array('m'=>$m))}{else/}{:url('index/index/soso')}{/if}">
    				<i class="iconfont">&#xe619;</i>
    				<input type="text" name="ks" value="{:input('ks')}" placeholder="搜你想搜的">
    			</form>
			</div>
		</div>
		{if user('userid')}
		<a href="{:url('index/user/set')}" class="aui-navBar-item">
			<i class="iconfont">&#xe697;</i>
		</a>
		{else/}
		<a href="javascript:;" class="aui-navBar-item yemianf" w="100%" title="注册登录" tblr="b" h="80%" anim="2" url="{:url('index/user/login')}">
			<i class="iconfont">&#xe697;</i>
		</a>
		{/if}
	</header>
	<section class="aui-scrollView pb-20 animated slideInLeft0">
        <div class="aui-flex">
			<div class="aui-flex-box">
				<h1>搜索 “{:input('ks')}” 相关的帖子</h1>
			</div>
		</div>
		{volist name=":fun_so(input('m'),array('open'=>1),input('ks'),15)" id="vo" empty="
        <div class='empty' align='center'>
            <img src='/public/img/empty.png'/>
            <p>没有更多的记录</p>
        </div>"}
		<div class="aui-withe-box mb-10">
			<div class="bbs">
                <ul class="fn-clear recomlist conlist">
                    <li class="fn-clear">
                        <a href="{:url('index/model/html',array('model'=>$vo.m,'id'=>$vo.id))}">
                            <div class="rtop fn-clear">
                                <div class="rpic">
                                    <img src="{:fun_u($vo.uid, 'userhead')}" alt="">
                                </div>
                                <div class="rinfo">
                                    <h4>{:fun_u($vo.uid, 'username')}<span class="rtime">{$vo.time|times}</span></h4>
                                    <p><span class="rstyle">{:fun_cate_m($vo.tid,'name')}</span>  <span class="rpos"></span>
                                    </p>
                                </div>
                            </div>
                            <div class="rmain">
                                <div class="mtext">
                                    <p>{$vo.title}{if $vo.settop==1}<span class="mtop">置顶</span>{/if}</p>
                                </div>
                                {if getImgList($vo.content,0)}
                                <div class="mmpic">
                                    <div class="picbox">
                                        {volist name=":getImgList($vo.content)" id="v" length='4'}
                                        <img src="{$v}" alt="{$vo.title}" onerror="javascript:this.src='/public/img/cover/0.jpg';">
                                        {/volist}
                                    </div>
                                </div>
                                {/if}
                            </div>
                            <div class="rbottom fn-clear">
                                <p><i class="iconfont">&#xe614;</i>{$vo.view}人阅读</p>
                                <p>
                                    <span class="comNum"><i class="iconfont">&#xe610;</i>{$vo.zan}</span>
                                    <span class="upNum"><i class="iconfont">&#xe61e;</i>{$vo.pinglun}</span>
                                </p>
                            </div>
                        </a>
                    </li>
                </ul>
            </div>
		</div>
		{/volist}
		<div class="aui-withe-box">
			<div class="aui-all">
				{:fun_so(input('m'),array('open'=>1),input('ks'),15)->render()}
			</div>
		</div>
	</section>
</section>
</body>
</html>
